package com.cqie.hospitalescort.VO;

import com.baomidou.mybatisplus.annotation.*;
import com.cqie.hospitalescort.entity.EscortInfo;
import com.cqie.hospitalescort.entity.PatientInfo;
import com.cqie.hospitalescort.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class OrderVO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单编号")
    private String orderCode;

    @ApiModelProperty("下单人id")
    private Long userId;

    @ApiModelProperty("下单人名称")
    private String nickname;

    @ApiModelProperty("陪诊人信息")
    private EscortInfo escortInfo;

    @ApiModelProperty("类别id")
    private Long typeId;

    @ApiModelProperty("类别名称")
    private String type;

    @ApiModelProperty("陪诊开始时间")
    @JsonFormat(pattern = DateUtil.DEFAULT_FORMAT)
    private Date orderStartTime;

    @ApiModelProperty("陪诊结束时间")
    @JsonFormat(pattern = DateUtil.DEFAULT_FORMAT)
    private Date orderEndTime;

    @ApiModelProperty("交易金额")
    private BigDecimal orderPrice;

    @ApiModelProperty("延续订单金额")
    private BigDecimal extendedPrice;

    @ApiModelProperty("满意度")
    private Integer satisfactionLevel;

    @ApiModelProperty("状态(1-预约中，2-预约成功，3-陪诊中，4-已完成，5-已延续，6-已取消)")
    private Integer orderStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = DateUtil.DEFAULT_FORMAT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = DateUtil.DEFAULT_FORMAT)
    private Date updateTime;

    @ApiModelProperty("就诊人信息")
    private PatientInfo patientInfo;

    @ApiModelProperty("需求")
    private String demand;

    @ApiModelProperty("陪诊接送地址")
    private String receiveAddress;

    @ApiModelProperty("陪诊接送电话")
    private String tel;

    @ApiModelProperty("医院id")
    private String hospitalId;

    @ApiModelProperty("医院名称")
    private String hospitalName;

    @ApiModelProperty("代跑取药地址")
    private String address;

    @ApiModelProperty("取送药品-就诊人信息")
    private PatientInfo client;

    private Integer stype;

    @ApiModelProperty("是否已评价")
    private Boolean isAccess = false;

}
